package lambda;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/2/22 13:48
 * @description:
 * @version:
 */
/**
 * 加法加密
 */
public class AddEncoder implements IEncoder {
    @Override
    public int encode(int num) {
        return num + 1;
    }
    /**
     * 测试
     */
    public static void main(String[] args) {
        IEncoder encoder = new AddEncoder();
        int result = encoder.encode(1);
        System.out.println("加密结果：" + result);
    }
}

